cmake_minimum_required(VERSION 3.16)

project(preview)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOMOC ON)

find_package(Qt5 COMPONENTS Core Gui Quick X11Extras REQUIRED)

add_executable(preview main.cpp res.qrc windowpreview.cpp)

target_link_libraries(preview PRIVATE Qt5::Core Qt5::Gui Qt5::Quick Qt5::X11Extras OpenGL xcb xcb-composite)
